/*
 *  TrackMan.cpp
 *  libavid
 *
 *  Created by Peter on 25.02.12.
 *  Copyright 2012 __MyCompanyName__. All rights reserved.
 *
 */

#include "TrackMan.h"
#include "AStream.h"

A_IMPLEMENT_CLASS( 'TKMN', TrackMan, AObject );

void TrackMan::readFromStream( AStream& str, const AObjDoc& objd )
{
	UInt8 tagMark, version;
	str.readPod( tagMark );
	str.readPod( version );
	TR_ASSERT( tagMark == 0x02 );
	TR_ASSERT( version == 0x01 );
	
	str.readPod( _trackerDataSlots );
	str.readPod( _trackedParamSlots );
	
	str.readPod( tagMark );
	TR_ASSERT( tagMark == 0x03 );
}

void TrackMan::dump( std::ostream& str ) const
{
	str << "TrackMan {" << std::endl;
	
	str << "\t_trackerDataSlots: " << _trackerDataSlots << std::endl;
	str << "\t_trackedParamSlots: " << _trackedParamSlots << std::endl;
	
	str << "}" << std::endl;
}